/**
 * Created by chenhm on 11/04/2017.
 */
const fs = require('fs'),
    walkFile = require('./walk-file');


function getSqlMap() {
    let basePath = __dirname;
    basePath = basePath.replace(/\\/g,'\/');

    let pathArr = basePath.split('\/');
    pathArr = pathArr.slice(0, pathArr.length - 1);
    basePath = pathArr.join('/') + '/sql/';

    let fileList = walkFile(basePath, 'sql');
    return fileList;
}

module.exports = getSqlMap;